home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / blur / anblur.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  5.4 KB  |  112 lines

  1.  
  2.           AnfyBlur 2.1 - Copyright (C) by Fabio Ciucci 1997/98
  3.  
  4.  
  5. This is a Java routine able to animate a sequence of GIF/JPG images, like
  6. other animators, but it calculate also the motion blur effect between
  7. frames, like blur effect caused by speed in cameras.
  8. Offcouse the GIF/JPG frames must be all of same size.
  9. Rememeber that you need both anblur.class , Lware.class and anfy.class.
  10. You must upload these 3 .class files and insert the <applet> tag on your
  11. html document to add this applet to your page.
  12. Here an example of what you have to write in the html (the things anfter
  13. the ; are comments with min-max values acceptet):
  14.  
  15.  
  16. <applet code="anblur.class" width=200 height=226>  ; Name, Width, Height
  17. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  18. <param name=regcode value="NO">         ; Register code (if you have it)
  19. <param name=reglink value="NO">         ; URL where go optionally when clicked
  20. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  21. <param name=regframename value="_blank"> ; Name of new frame for reglink
  22. <param name=statusmsg value="Blur applet">  ; Statusbar message
  23. <param name=imgs value="anim/ani">              ; Animation to load
  24. <param name=format value=".gif">                ; Suffix of frames
  25. <param name=nimgs value="5">                    ; Number of frames
  26. <param name=pingpong value="YES">               ; Cyclic or Ping-Pong mode
  27. <param name=doublesize value="YES">             ; Normal or double size.
  28. <param name=speed value="100">                  ; Speed of play
  29. <param name=pingpause value="1000">             ; Ping Pause
  30. <param name=pongpause value="100">              ; Pong Pause
  31. <param name=audioping value="audio/piccon.au">  ; Audio effect on Ping
  32. <param name=audiopong value="NO">               ; Audio effect on Pong
  33. <param name=priority value="3">                 ; Task priority (1..10)
  34. Sorry, your browser doesn't suppor Java.        ; Msg in no java browsers
  35. </applet>
  36.  
  37.  
  38.                              ---------
  39.  
  40.  
  41. Here detailed instructions about how to change parameters:
  42.  
  43.  
  44. The credits parameter can't be changed otherwise the applet will not work.
  45.  
  46. To activate the reg parameters read the shareware registration notes.
  47. In the "regcode" parameter you have to place the registration code you
  48. purchase from the author. If it is correct and the applet is run from the
  49. registered domain name, you can use "reglink" parameter, where you can specify
  50. an URL where bring user when the applet is clicked.
  51. If you set to "YES" regnewframe, you can specify a frame where load the
  52. reglink:
  53.  
  54. "_blank"  : To load the link in a new blank unnamed browser window.
  55. "_self"   : To load the link into the same window the applet occupies.
  56. "_parent" : To load the link into the immediate FRAMESET parent.
  57. "_top"    : To load the link into the top body of the window.
  58.  
  59. Otherwise the frame name, for example "myframe1".
  60.  
  61. The images can be of any size, GIF and/or JPG. But all must be same size.
  62. You can display them animated at original size, otherwise zooming them *2,
  63. with "doublesize" parameter set to "YES".
  64. In this case, remember to place in the "width" and "height" tags the doubled
  65. size of frames.
  66. For example, if frames are 100x113, you have to set width=200, height=223.
  67. Setting "doublesize" to "NO", mean playing in original size, in this
  68. case place the original size in "width" and "height" tags.
  69. Note: when the format is .gif, DON'T save any transparency color information.
  70.  
  71. The frames of animation can start with any prefix, but must end with the
  72. framenum (1,2,3,4...).
  73. You can manually select the suffix (".gif" or ".jpg") with "format" param.
  74. The "imgs" parameter needs the prefix name of images, with an evenctual
  75. path. For example, if images are named ani1.gif, ani2.gif, ani3.gif,
  76. and are placed in the anim/ subdirectory, you have to set:
  77.  
  78. <param name=imgs value="anim/ani">
  79. <param name=format value=".gif">
  80.  
  81. The "nimgs" parameter needs to know the number of frames.
  82.  
  83. There are two replay modes: "CYCLIC" and "PING PONG".
  84. The cyclic mode, simply play the frames starting from 1th, until the last
  85. one, then restarts from 1th again: 1,2,3,4,5,1,2,3,4,5,1,2,3,4....
  86. The ping pong mode instead play from 1th to last, then go backwards reaching
  87. again 1th, then changing direction of play reach again the last frame.
  88. In other words: 1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4.....
  89. This mode is useful for some kind of movements, like the one in the
  90. example animation included.
  91. Setting "pingpong" to "YES" you enable ping pong mode, setting it to "NO"
  92. you enable cyclic mode.
  93.  
  94. You can determine the speed of play with "speed" parameter. The value is
  95. expressed in microseconds. Usually the animation goes slower than the
  96. parameter, for drawing time.
  97.  
  98. The "pingpause" and "pongpause" parameters are the speed of first and
  99. last frames, and setting one or both of them higher than "speed" parameter,
  100. you will cause a pause. This can be useful in some cases.
  101.  
  102. You are able to add sounds at ping (first) and pong (last) frames, with
  103. "audioping" and "audiopong" parameters.
  104. To select a sound, place the name of .au sample, evenctually with the path.
  105. Otherwise write a "NO", this will disable playing feature.
  106.  
  107. Note: sounds can be only in Sun's .au format. If your programs saves only
  108. in .voc, .waw, .iff, search for programs like Goldwave to convert them.
  109. Remember to save as 8000 Hz mono .au samples.
  110.  
  111.  
  112.